home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
mmgr
/
MM_PowerFix.lha
/
Extra
/
xTractPolicies.rexx
next >
Wrap
OS/2 REXX Batch file
|
1997-06-02
|
949b
|
37 lines
/*
** Gem/konverter region 23 konference-regler
** © 1997 af Jacob Laursen
*/
options results
parse arg file
path = 'T:Policy/'
text = 'konfregl.txt'
dest = 'MM:Config/MM_PowerFix/Policy/AreaFix/'
address command 'makedir T:Policy'
address command 'echo "CD T:Policy" >T:Policy.scp'
address command 'echo "unzip 'file'" >>T:Policy.scp'
address command 'execute T:Policy.scp'
address command 'delete T:Policy.scp'
call open(file,path || text,'r')
say 'File: ['text'] opened.' || '0a'x
do until eof(file) = 1
line = readln(file)
if line ~= '' then do
if left(line,17) = 'Echo : ' then newname = substr(line,18,length(line)-18)
if left(line,17) = 'Rules filename : ' then do
oldname = strip(substr(line,18,12))
address command 'charconv 'path || oldname' 'dest || newname' DANSK AMIGA LF'
say newname || '... done!'
end
end
end
call close(file)
address command 'delete 'path' all'